﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lesson2__封装_变量访问修饰符
{
    //练习题
    internal class Program
    {
        //定义一个人类有基本的姓名，年龄，身高，家庭住址等基本的住址
        //并用人创建若干个对象
        public class Person
        {
            public string name;
            public int age;
            public string height;
            public string address;
        }
        static void Main(string[] args)
        {
            Person p1 = new Person();
            p1.age = 10;
            p1.name = "唐老师";
            p1.address = "山西";
            p1.height = "179";
            Person p2 = new Person();
            Person p3 = new Person();
            Person p4 = new Person();
        }
    }
}
